package cn.yeziji.forum.exception;

import cn.yeziji.forum.common.enums.status.RedisStatus;

/**
 * Redis 异常
 *
 * @author gzkemays
 * @since 2021/12/23 20:57
 */
public class RedisException extends ForumException {
  public RedisException(RedisStatus status) {
    super(status.getCode(), status.getMsg());
  }

  public RedisException(RedisStatus status, String replyKey) {
    super(status.getCode(), status.getMsg().replace("key", replyKey));
  }
}
